<div align="left">
<ul id="cont-directoryList" class="normal-list">
<!-- <li class="ui-state-default ui-corner-all">
	<a href="javscript:void(0)"><img src="/core.php/photo/thumbnail/id/6ea6a7503396afbdac1e28f496aedbb7/type/mini"/></a>
	<span><?php echo __("Inbox");?></span>	
</li> -->


<?php 
$mainDirectoryId = $mainDirectory->getId();
foreach($directories as $directory)
{
	$newMessages = $directory->getNewMessagesCount();
	if($newMessages > 0)
		$new = "ui-state-highlight";
	else
		$new = "";
?>
<li class="ui-state-default ui-corner-all <?php echo $new;?>" directory="<?php echo $directory->getId();?>">
	<a href="javascript:void(0)">
	<span><?php echo $directory->getName();?></span>
	</a>
	<?php if($directory->getId() != $mainDirectoryId) {?><a href="javascript:void(0)" style="float:right;" class="ui-icon ui-icon-trash" title="<?php echo __("Remove");?>"></a> <?php }?>
	<a href="javascript:void(0)" style="float:right;" class="ui-icon ui-icon-gear" title="<?php echo __("Edit");?>"></a>

</li>
<?php 

}

 ?>
</ul>
<button id="but-newDirectory">Crear carpeta</button>
</div>

